package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InterviewRegistrationMapper;
import com.ruoyi.system.domain.InterviewRegistration;
import com.ruoyi.system.service.IInterviewRegistrationService;

/**
 * 面试登记Service业务层处理
 * 
 * @author jzy
 * @date 2024-01-22
 */
@Service
public class InterviewRegistrationServiceImpl implements IInterviewRegistrationService 
{
    @Autowired
    private InterviewRegistrationMapper interviewRegistrationMapper;

    /**
     * 查询面试登记
     * 
     * @param id 面试登记主键
     * @return 面试登记
     */
    @Override
    public InterviewRegistration selectInterviewRegistrationById(Long id)
    {
        return interviewRegistrationMapper.selectInterviewRegistrationById(id);
    }

    /**
     * 查询面试登记列表
     * 
     * @param interviewRegistration 面试登记
     * @return 面试登记
     */
    @Override
    public List<InterviewRegistration> selectInterviewRegistrationList(InterviewRegistration interviewRegistration)
    {
        return interviewRegistrationMapper.selectInterviewRegistrationList(interviewRegistration);
    }

    /**
     * 新增面试登记
     * 
     * @param interviewRegistration 面试登记
     * @return 结果
     */
    @Override
    public int insertInterviewRegistration(InterviewRegistration interviewRegistration)
    {
        return interviewRegistrationMapper.insertInterviewRegistration(interviewRegistration);
    }

    /**
     * 修改面试登记
     * 
     * @param interviewRegistration 面试登记
     * @return 结果
     */
    @Override
    public int updateInterviewRegistration(InterviewRegistration interviewRegistration)
    {
        return interviewRegistrationMapper.updateInterviewRegistration(interviewRegistration);
    }

    /**
     * 批量删除面试登记
     * 
     * @param ids 需要删除的面试登记主键
     * @return 结果
     */
    @Override
    public int deleteInterviewRegistrationByIds(Long[] ids)
    {
        return interviewRegistrationMapper.deleteInterviewRegistrationByIds(ids);
    }

    /**
     * 删除面试登记信息
     * 
     * @param id 面试登记主键
     * @return 结果
     */
    @Override
    public int deleteInterviewRegistrationById(Long id)
    {
        return interviewRegistrationMapper.deleteInterviewRegistrationById(id);
    }
}
